{"ast":null,"code":"import React from'react';import{Contacts}from\"../index\";import\"./ContactsBlock.scss\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";var ContactsBlock=function ContactsBlock(props){return/*#__PURE__*/_jsxs(_Fragment,{children:[props.addRequestList.items.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"contacts__block\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"contacts__block-header\",children:/*#__PURE__*/_jsx(\"div\",{className:\"contacts__block-header-top\",children:/*#__PURE__*/_jsx(\"span\",{children:\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435 \\u0437\\u0430\\u044F\\u0432\\u043A\\u0438\"})})}),/*#__PURE__*/_jsx(Contacts,{contacts:props.addRequestList,addRequest:true,currentUser:props.currentUser})]}),props.sentRequestList.items.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"contacts__block\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"contacts__block-header\",children:/*#__PURE__*/_jsx(\"div\",{className:\"contacts__block-header-top\",children:/*#__PURE__*/_jsx(\"span\",{children:\"\\u0418\\u0441\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435 \\u0437\\u0430\\u044F\\u0432\\u043A\\u0438\"})})}),/*#__PURE__*/_jsx(Contacts,{contacts:props.sentRequestList,sentRequest:true,currentUser:props.currentUser})]}),props.allAcceptedList.items.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"contacts__block\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"contacts__block-header\",children:/*#__PURE__*/_jsx(\"div\",{className:\"contacts__block-header-top\",children:/*#__PURE__*/_jsx(\"span\",{children:\"\\u0412\\u0441\\u0435 \\u043A\\u043E\\u043D\\u0442\\u0430\\u043A\\u0442\\u044B\"})})}),/*#__PURE__*/_jsx(Contacts,{contacts:props.allAcceptedList,allAccepted:true,currentUser:props.currentUser})]})]});};export default ContactsBlock;","map":{"version":3,"names":["React","Contacts","ContactsBlock","props","addRequestList","items","length","currentUser","sentRequestList","allAcceptedList"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/components/ContactsBlock/index.tsx"],"sourcesContent":["import React from 'react';\nimport {Contacts} from \"../index\";\nimport {ContactsBlockProps} from \"../../models/props/ContactsBlockProps\";\nimport \"./ContactsBlock.scss\";\nconst ContactsBlock: React.FC<ContactsBlockProps> = (props) => {\n\n    return (\n        <>\n            {(props.addRequestList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\">\n                        <div className=\"contacts__block-header-top\">\n                            <span>Входящие заявки</span>\n                        </div>\n                    </div>\n                    <Contacts\n                        contacts={props.addRequestList}\n                        addRequest={true}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n            {(props.sentRequestList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\">\n                        <div className=\"contacts__block-header-top\">\n                            <span>Исходящие заявки</span>\n                        </div>\n                    </div>\n                    <Contacts\n                        contacts={props.sentRequestList}\n                        sentRequest={true}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n            {(props.allAcceptedList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\">\n                        <div className=\"contacts__block-header-top\">\n                            <span>Все контакты</span>\n                        </div>\n                    </div>\n                    <Contacts\n                        contacts={props.allAcceptedList}\n                        allAccepted={true}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n        </>\n    );\n}\n\nexport default ContactsBlock;"],"mappings":"AAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,OAAQC,QAAQ,KAAO,UAAU,CAEjC,MAAO,sBAAsB,CAAC,6IAC9B,GAAMC,cAA2C,CAAG,QAA9CA,cAA2C,CAAIC,KAAK,CAAK,CAE3D,mBACI,2BACMA,KAAK,CAACC,cAAc,CAACC,KAAK,CAACC,MAAM,CAAG,CAAC,eACnC,aAAK,SAAS,CAAC,iBAAiB,wBAC5B,YAAK,SAAS,CAAC,wBAAwB,uBACnC,YAAK,SAAS,CAAC,4BAA4B,uBACvC,+GAA4B,EAC1B,EACJ,cACN,KAAC,QAAQ,EACL,QAAQ,CAAEH,KAAK,CAACC,cAAe,CAC/B,UAAU,CAAE,IAAK,CACjB,WAAW,CAAED,KAAK,CAACI,WAAY,EACjC,GACA,CAERJ,KAAK,CAACK,eAAe,CAACH,KAAK,CAACC,MAAM,CAAG,CAAC,eACpC,aAAK,SAAS,CAAC,iBAAiB,wBAC5B,YAAK,SAAS,CAAC,wBAAwB,uBACnC,YAAK,SAAS,CAAC,4BAA4B,uBACvC,qHAA6B,EAC3B,EACJ,cACN,KAAC,QAAQ,EACL,QAAQ,CAAEH,KAAK,CAACK,eAAgB,CAChC,WAAW,CAAE,IAAK,CAClB,WAAW,CAAEL,KAAK,CAACI,WAAY,EACjC,GACA,CAERJ,KAAK,CAACM,eAAe,CAACJ,KAAK,CAACC,MAAM,CAAG,CAAC,eACpC,aAAK,SAAS,CAAC,iBAAiB,wBAC5B,YAAK,SAAS,CAAC,wBAAwB,uBACnC,YAAK,SAAS,CAAC,4BAA4B,uBACvC,6FAAyB,EACvB,EACJ,cACN,KAAC,QAAQ,EACL,QAAQ,CAAEH,KAAK,CAACM,eAAgB,CAChC,WAAW,CAAE,IAAK,CAClB,WAAW,CAAEN,KAAK,CAACI,WAAY,EACjC,GACA,GAEX,CAEX,CAAC,CAED,cAAeL,cAAa"},"metadata":{},"sourceType":"module"}